package com.example.dao.demo;

import com.example.dao.UserDao;
import com.example.dao.service.UserService;
import com.example.dao.service.impl.UserServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Wenyi Luo
 * @ClassName UserController
 * @Description TODO
 * @date 22/2/27 16:44
 * @version: 1.0
 */

public class UserController {
    public static void main(String[] args) {
        ApplicationContext app=new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService userService=(UserService) app.getBean("userService");
        userService.save();
    }

    }

